cmake_minimum_required(VERSION 3.14)
project(hica)

find_package(PkgConfig REQUIRED)
pkg_search_module(GLIB REQUIRED glib-2.0)
pkg_search_module(GMODULE REQUIRED gmodule-2.0)

add_subdirectory("apps/syssdm")

set(APP_INSTALL_DIR opt/bmc/apps/${PROJECT_NAME})
install(DIRECTORY src/lualib DESTINATION ${APP_INSTALL_DIR} OPTIONAL)
install(DIRECTORY src/service DESTINATION ${APP_INSTALL_DIR} OPTIONAL)
install(FILES dist/config.cfg DESTINATION ${APP_INSTALL_DIR} OPTIONAL)
